import {
	request
} from '../../request.js'
const order = {
	// 全部订单
	allList(params) {
		return request({
			method: 'Get',
			url: '/api/order/front/order/agent/allList',
			params:params
		})
	},
	// 个人订单(提交订单)
	privatelist(params) {
		return request({
			method: 'Get',
			url: '/api/order/front/order/agent/persional',
			params:params
		})
	},
	// 审核订单
	
	auditlist(params) {
		return request({
			method: 'Get',
			url: '/api/order/front/order/agent/audit',
			params:params
		})
	},
	// 待审核订单
	
	toAudit(params) {
		return request({
			method: 'Get',
			url: '/api/order/front/order/agent/toAudit',
			params:params
		})
	},
	// 已审核订单
	
	 hasAudit (params) {
		return request({
			method: 'Get',
			url: '/api/order/front/order/agent/hasAudit',
			params:params
		})
	},
	// 认领订单
	cliamList(params) {
		return request({
			method: 'Get',
			url: '/api/order/front/order/agent/cliamList',
			params:params
		})
	},
	// 我的订单统计
	statistics(params) {
		return request({
			method: 'Get',
			url: '/api/order/front/order/agent/statistics/'+params

		})
	},
	// 订单审核或拒绝
	sub(params) {
		return request({
			method: 'Post',
			url: '/api/order/front/order/agent/audit',
			params: params
		})
	},
	// 订单详情
	claimDetils(params) {
		return request({
			method: 'Get',
			url: '/api/order/front/order/agent/orderDetail/' + params
		})
	},
	// 秒杀活动订单
	secKilllist(params) {
		return request({
			method: 'Get',
			url: '/api/order/front/order/agent/seckilllist',
			params:params
		})
	},
	// 秒杀活动订单统计
	seckillStatistics(type) {
		return request({
			method: 'Get',
			url: '/api/order/front/order/agent/statistics/'+type
		})
	},
	// 代理商活动订单
	agentActlist(params) {
		return request({
			method: 'Get',
			url: '/api/order/front/order/agent/agentActlist',
			params:params
		})
	},
	// 是否开启代理商认领
	checkAgent() {
		return request({
			method: 'Get',
			url: '/api/cms/cfg/common/checkAgentOrderCliam'
			
		})
	},
	// 修改颜色，尺码
	updateOrderGoods(data) {
		return request({
			method: 'Post',
			url: '/api/order/front/order/agent/updateOrderGoods/'+data.orderId+'/'+data.itemId
			
		})
	},
	// 删除订单
	del(id) {
		return request({
			method: 'Post',
			url: '/api/order/front/order/agent/del/'+id
			
		})
	},
	// 拒绝订单
	rejectList(id) {
		return request({
			method: 'Get',
			url: '/api/order/front/order/agent/rejectList'
			
		})
	}
}
export default order
